<script>
export default {
  onLaunch: function () {
    this.init();
  },
  // onShow: function () {
  //   // console.log('App Show')
  // },
  // onHide: function () {
  //   // console.log('App Hide')
  // },
  methods: {
    init() {
      this.$store.dispatch('initApp/handleChangeVal', {
        key: 'init',
        val: { noSetState: true },
      });
      this.setSysInfo();
    },
    // 设置
    setSysInfo() {
      this.$store.dispatch('settings/handleChangeVal', {
        key: 'sysInfo',
        val: uni.getSystemInfoSync(),
      });
    },
  },
};
</script>

<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
.uni-picker-container .uni-picker-action.uni-picker-action-confirm {
  color: rgba(81, 92, 195, 1);
  font-weight: 500;
}
</style>
